package cn.com.dashihui.api.common;

public class OrderCode {
	/**
	 * 订单来源
	 * 订单来源，1：客户端，2：微信商城
	 */
	public static class OrderFrom{
		public final static int  APP = 1;
		public final static int  WXSELLER = 2;
	}
	/**
	 * 订单状态
	 * 订单状态，0:全部  1：待付款，2：待出库，3：待评价，4：待分享  5：已删除  6：待收货 7.退款完成 9：过期(已关闭)
	 */
	public static class OrderState{
		public final static int  NORMAL = 1;
		public final static int  FINISH = 2;
		public final static int  CANCEL = 3;
		public final static int  EXPIRE = 4;
		public final static int  DELETE = 5;
		public final static int  SHOU = 6;
		public final static int  REFUNDED = 7;
		public final static int  LATER = 9;
	}
	/**
	 * 异常订单状态
	 * 异常订单状态，1：异常未生效订单，2：异常退款中订单  3：异常已退款订单
	 */
	public static class OrderException{
		public final static int  VOIDEXCEPTION = 1;
		public final static int  BACKEXCEPTION = 2;
		public final static int  OVEREXCEPTION = 3;
	}
	/**
	 * 订单支付类型
	 * 支付方式，1：在线支付，2：货到付款
	 */
	public static class OrderPayType{
		public final static int  ON_LINE   = 1;
		public final static int  ON_DELIVERY = 2;
	}
	/**
	 * 订单退款状态
	 * 支付方式，0：未退款 1：审核中；2：审核通过；3：驳回；4：退款完成; 5:退款异常6:退款中
	 */
	public static class OrderTuiState{
		public final static int  NO_REFUND   = 0;
		public final static int  APPLYREFUNDING   = 1;
		public final static int  CHECKREFUND   = 2;
		public final static int  REJECTREFUND   = 3;
		public final static int  REFUNDED = 4;
		public final static int  REFUNDEXCEPTION = 5;
		public final static int  REFUNDING = 6;
	}
	/**
	 * 订单支付渠道
	 * 在线支付渠道，1：微信支付，3：支付宝支付    4:银联支付  5郑大支付6余额支付
	 */
	public static class OrderPayMethod{
		public final static int  WEIXIN  = 1;
		public final static int  ALIPAY  = 3;
		public final static int  SEL  = 4;
		public final static int  BALANCE = 5;
		public final static int  BALANCE1 = 6;
	}
	/**
	 * 订单来源
	 * 在线支付渠道，1：微信支付，3：支付宝支付    4:银联支付  5余额支付
	 */
	public static class OrderPayTypes{
		public final static int  WEIXIN  = 1;
		public final static int  ALIPAY  = 3;
		public final static int   SEL = 4;
		public final static int  BALANCE = 5;
		public final static int  MONEY = 6;
	}
	/**
	 * 银联支付
	 * 在线支付渠道，1：发送短信，2：输入验证码
	 */
	public static class SQPayMethod{
		public final static int  MSM  = 1;
		public final static int  CODE  = 2;
	}
	
	/**
	 * 订单支付状态
	 * 支付状态，1：待支付，2：已支付
	 */
	public static class OrderPayState{
		public final static int  NO_PAY  = 1;
		public final static int  HAD_PAY = 2;
	}
	/**
	 * 收货方式
	 * 收货方式，1：送货，2：自取
	 */
	public static class OrderTakeType{
		public final static int DELIVER = 1;
		public final static int TAKE_SELF = 2;
	}
	/**
	 * 配送方式
	 * 配送方式，1：门店配送，2：物流配送
	 */
	public static class OrderDeliverType{
		public final static int ON_STORE = 1;
		public final static int ON_LOGISTICS = 2;
	}
	/**
	 * 打包状态
	 * 打包状态，1：未接单，2：已接单，3：打包中，4：打包完成
	 */
	public static class OrderPackState{
		public final static int NO_ACCEPT = 1;
		public final static int HAD_ACCEPT = 2;
		public final static int PACKING = 3;
		public final static int PACK_FINISH = 4;
	}
	/**
	 * 收货状态
	 * 收货状态，1：待发货，2：已经发货
	 */
	public static class OrderDeliverState{
		public final static int NO_DELIVER = 1;
		public final static int HAD_DELIVER= 2;
	}
	
	/**
	 * 订单操作记录类型
	 * 1：新订单保存，2：支付订单，3：配送员接单，4：配货，5：配货完成，6：配送，7：签收，8：取货，9：取消订单，10：订单过期，11：删除订单，12：催单,13:免单退款 14:申请退款15:退款成功 16:退款异常
	 */
	public static class OrderLogType{
		public final static int SAVE = 1;
		public final static int PAY = 2;
		public final static int ACCEPT = 3;
		public final static int PACK = 4;
		public final static int PACK_FINISH = 5;
		public final static int DISPATCH = 6;
		public final static int SIGN = 7;
		public final static int GET = 8;
		public final static int CANCEL = 9;
		public final static int EXPIRY = 10;
		public final static int DELETE = 11;
		public final static int URGE = 12;
		public final static int FREE = 13;
		public final static int APPLYREFUND = 14;
		public final static int REFUNDED = 15;
		public final static int REFUNDEXCEPTION = 16;

		public final static String SAVE_ACTION = "提交订单";
		public final static String PAY_ACTION = "余额支付完成";
		public final static String PAY_ACTION_WEIXIN = "微信支付完成";
		public final static String PAY_ACTION_ALIPAY = "支付宝支付完成";
		public final static String PAY_ECHANGEACTION = "兑换支付完成";
		public final static String ACCEPT_ACTION = "配送员接单";
		public final static String PACK_ACTION = "开始配货";
		public final static String PACK_FINISH_ACTION = "配货完成";
		public final static String DISPATCH_ACTION = "配送";
		public final static String SIGN_ACTION = "签收";
		public final static String GET_ACTION = "取货";
		public final static String CANCEL_ACTION = "取消订单";
		public final static String EXPIRY_ACTION = "订单过期";
		public final static String DELETE_ACTION = "删除订单";
		public final static String URGE_ACTION = "催单";
		public final static String FREE_ACTION = "免单退款";
		
		
		public final static String SAVE_CONTECT = "订单已提交，请尽快支付";
		public final static String PAY_CONTECT = "支付完成，等待商家发货";
		public final static String CANCEL_CONTECT = "订单已取消";
		public final static String EXPIRY_CONTECT = "订单已过期";
		public final static String DELETE_CONTECT = "订单已删除";
		
	}
	
	/**
	 * 退款类型
	 * 1：取消订单，2：单个商品退款,3：零钱退款
	 */
	public static class RefundType {
		public final static int CANCEL_ORDER = 1;
		public final static int CANCEL_SINGLE = 2;
		public final static int CHANGE_REFUND = 3;
	}
	
	/**
	 * 退款状态
	 * 1：审核中，2：审核通过，3：审核不通过，4：已退款
	 */
	public static class RefundState {
		public final static int VERIFYING = 1;
		public final static int VERIFIED = 2;
		public final static int VERIFY_FAILED = 3;
		public final static int REFUNDED = 4;
	}
	/**
	 * 金额变动订单类型
	 * 1：商品订单，2：充值订单，3：提现订单，4：退款定单
	 */
	public static class MoneyState {
		public final static int GOODORDER = 1;
		public final static int ADDMONEY = 2;
		public final static int SAVEMONEY = 3;
		public final static int REORDER = 4;
	}
}
